]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Fix stacking of background and desktop icons
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 14 Nov 2013 15:34:59 +0000 (15:34 +0000)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 14 Nov 2013 15:49:28 +0000 (15:49 +0000)
If desktop icons are enabled and not covered by maximized windows,
we will fade them in/out during overview transitions. However when
moving background handling into mutter/gnome-shell, we ended up with
the overview background on top of the DESKTOP window clone, hiding
the fade transition.
Fix the stack order to bring the effect back.

https://bugzilla.gnome.org/show_bug.cgi?id=707671

js/ui/overview.js

index 867f7ef92e6a981908dba40e35eca877f103ae5a..1809fe491ac7296f1d7be4bd8792b78f41969a31 100644 (file)
@@ -112,9 +112,6 @@ const Overview = new Lang.Class({
         // rendering options without duplicating the texture data.
         let monitor = Main.layoutManager.primaryMonitor;
 
-        this._desktopFade = new St.Bin();
-        Main.layoutManager.overviewGroup.add_child(this._desktopFade);
-
         let layout = new Clutter.BinLayout();
         this._stack = new Clutter.Actor({ layout_manager: layout });
         this._stack.add_constraint(new LayoutManager.MonitorConstraint({ primary: true }));
@@ -133,6 +130,9 @@ const Overview = new Lang.Class({
         Main.layoutManager.overviewGroup.add_child(this._backgroundGroup);
         this._bgManagers = [];
 
+        this._desktopFade = new St.Bin();
+        Main.layoutManager.overviewGroup.add_child(this._desktopFade);
+
         this._activationTime = 0;
 
         this.visible = false;           // animating to overview, in overview, animating out